package com.example.springsearchengines.service;

public class Weight {

    private Integer docId;
    //weight越大，表示文档与词之间的相关性越强，这里只是一套比较简单的逻辑，但实际可能会有一整个系统
    private Integer weight;

    public Weight(Integer docId, Integer weight) {
        this.docId = docId;
        this.weight = weight;
    }

    public Weight() {
    }

    public Integer getDocId() {
        return docId;
    }

    public void setDocId(Integer docId) {
        this.docId = docId;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
}
